home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tcl / set.z / set
Encoding:
Text File  |  1998-10-30  |  1.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. sssseeeetttt((((3333TTTTccccllll))))                                                            sssseeeetttt((((3333TTTTccccllll))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      set - Read and write variables
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      sssseeeetttt _v_a_r_N_a_m_e ?_v_a_l_u_e?
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      Returns the value of variable _v_a_r_N_a_m_e.  If _v_a_l_u_e is specified, then set
  17.      the value of _v_a_r_N_a_m_e to _v_a_l_u_e, creating a new variable if one doesn't
  18.      already exist, and return its value.  If _v_a_r_N_a_m_e contains an open
  19.      parenthesis and ends with a close parenthesis, then it refers to an array
  20.      element:  the characters before the first open parenthesis are the name
  21.      of the array, and the characters between the parentheses are the index
  22.      within the array.  Otherwise _v_a_r_N_a_m_e refers to a scalar variable.  If no
  23.      procedure is active, then _v_a_r_N_a_m_e refers to a global variable.  If a
  24.      procedure is active, then _v_a_r_N_a_m_e refers to a parameter or local variable
  25.      of the procedure unless the _g_l_o_b_a_l command has been invoked to declare
  26.      _v_a_r_N_a_m_e to be global.
  27.  
  28.  
  29. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  30.      read, write, variable
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.